<?php
class Zendvn_View_Helper_CmsIcon extends Zend_View_Helper_Abstract{
	
	//$option =array('type'=>'submit','name'=>'appForm');
	
	public function cmsIcon($name,$values = '#',$attribs = null){
		$iconDir = $attribs['iconDir'];
		if(empty($iconDir)) $iconDir = 'images/';		
		
		$icon = $attribs['icon'];
		if(empty($icon)) $icon = 'icon_info.png';
		
		$src = $iconDir . $icon;
		
		$link = $values;
			
		$xhtml = '<a href="' . $link . '">
                  <img src="' . $src . '" width="16" height="16" title="'.$name.'"> 
                  </a>';
		return $xhtml;
		
	}
}